<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
   console.log(true && true);
   console.log(false && true);
   console.log(false && false);
   console.log("******************");
   console.log(1 && 1);
   console.log(1 && 0);
   console.log(0 && 0);


   console.log("******************");

   console.log(true || true);
   console.log(true || false);
   console.log(false || false);

   console.log("******************");

   console.log(!true);
   console.log(!false);


   var a,b,c;
   a = 10;
   if (a>=10){
       b = a;
   }

   console.log(b);

   /*
   条件表达式
   if () while() for(),do... while()
    */
console.log("*****************");
    var e,f,g;
    e = 11;
   (e>=10) && (f=e);
console.log(f);









</script>
</body>
</html>